var app = getApp();
Page({
	data: {},
	onLoad(options) {

	},
	formSubmit: function(e) {
		var that = this;
		var post = e.detail.value;

		app.globalAjax(
			'/api/cooperate/apply',
			"post",
			post,
			function(e) {
				if (e.code == 0) {
					wx.showToast({
						title: '提交成功',
						icon: 'none',
						duration: 2000,
						success: function() {
							setTimeout(function() {
								wx.navigateBack({
									delta: 1
								})
							}, 2000)
						}
					});
				} else {
					wx.showToast({
						title: e.msg,
						icon: "none"
					});
				}
			})
	}
})
